import request from '@/utils/request'

// api地址
const api = {
  list: 'dealer.withdraw/list',
  submit: 'dealer.withdraw/submit',
  mchTransfer: 'dealer.withdraw/mchTransfer',
  queryBillsNotice: 'dealer.withdraw/queryBillsNotice'
}

// 分销商提现明细
export const list = (param) => {
  return request.get(api.list, param)
}

// 提交提现申请
export const submit = (data) => {
  return request.post(api.submit, data)
}

// 微信商家转账
export const mchTransfer = (id, data) => {
  return request.post(api.mchTransfer, { id, ...data })
}

// 微信商家转账
export const queryBillsNotice = (data) => {
  return request.post(api.queryBillsNotice, data)
}